package io.renren.modules.ProjectControl.Service;

import io.renren.modules.ProjectControl.Service.ExeCommandService.ExeServiceNginx;
import org.springframework.stereotype.Service;

import java.io.IOException;
@Service
public class ExeCommandNginx implements ExeServiceNginx {
    @Override
    public void Start(String Command) throws IOException, InterruptedException {

        Runtime runtime = Runtime.getRuntime();
        runtime.exec(Command);
    }

    @Override
    public String Stop(String Command) throws IOException {
        return null;
    }

    @Override
    public String Status() throws IOException {
        return null;
    }
}
